package com.gdut.multiusercommunicationsystem.mapper;

import com.gdut.multiusercommunicationsystem.model.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    //注册
    int insert(User user);
    //根据名字从数据库获取该用户的全部信息
    User selectByName(String username);

    List<User> selectAll(String name);
}
